<?php if(validation_errors() != '') { ?>
<div class="alert alert-danger">
    <?php echo validation_errors(); ?>
</div>
<?php } ?>
<form role="form" method="POST">
    <div class="form-group">
        <label>Moneda</label>
        <input type="text" name="moneda" class="form-control" maxlength="100" value="<?=$moneda['moneda']?>" autofocus>
    </div>
    <div class="form-group">
        <label>Símbolo</label>
        <input type="text" name="simbolo" class="form-control" maxlength="5" value="<?=$moneda['simbolo']?>">
    </div>
    <div class="form-group">
        <label>Currency</label>
        <input type="text" name="currency" class="form-control" maxlength="5" value="<?=$moneda['currency']?>">
    </div>
    <button type="submit" class="btn btn-success">Editar</button>
</form>
<br>
<pre>
<table class="table table-bordered table-striped">
    <tr>
        <th>Nombre</th>
        <th>Apellido</th>
        <th>Fecha</th>
        <th>Descripción</th>
    </tr>
    <?php foreach($log as $l) { ?>
    <tr>
        <td><?=$l['nombre']?></td>
        <td><?=$l['apellido']?></td>
        <td><?=$l['fecha']?></td>
        <td><?=$l['texto']?></td>
    </tr>
    <?php } ?>
</table>
</pre>